package ooday02;

abstract public class Animal {
    String name;
    int age;
    String color;
    String food;
    Animal(String name,int age,String color,String food){
        this.name=name;
        this.age=age;
        this.color=color;
        this.food=food;
    }
    void sayHi(){
      System.out.println(name+"今年"+age+"岁了"+"他是"+color+"的");
    }
    void drink(){
        System.out.println(name+"在喝水，顿顿顿~");
    }
    void eat(){
        System.out.print(name+"正在吃");
    }
}
